﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PostSharp.Laos;

namespace Yatagan.BaseAspects
{
    [Serializable]
    public abstract class MethodInvocationAspect : OnMethodInvocationAspect
    {
        public override void OnInvocation(PostSharp.Laos.MethodInvocationEventArgs eventArgs)
        {
            MethodInvocationEventArgs eventArgsSub = new MethodInvocationEventArgs(eventArgs);
            OnInvocation(eventArgsSub);
        }

        public abstract void OnInvocation(MethodInvocationEventArgs eventArgs);
    }
}
